package com.heu.blood.recycle.exception;

import com.heu.blood.globalExceptionHandler.BaseErrorInfoInterface;

public enum BloodReturnException implements BaseErrorInfoInterface {
    NO_SEND_RECORD("3201","未找到对应的发血记录，无法退血"),
    TIME_OUT("3202","距发血已超过三十分钟，无法退血"),
    DUPLICATE_RETURN("3203","不可重复退血");

    BloodReturnException(String resultCode, String resultMsg){
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    // 错误码
    private final String resultCode;

    // 错误提示
    private final String resultMsg;
    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
